package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

import java.io.File;

public class UploadAvatarApi implements IRequestApi, IRequestType {


    private File avatarfile;

    private String filename;

    public UploadAvatarApi(File file) {
        this.avatarfile = file;
    }

    @NonNull
    @Override
    public String getApi() {
        return "/system/user/profile/avatar";
    }


    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.FORM;
    }

}
